home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 21
/
Cream of the Crop 21 (Terry Blount) (October 1996).iso
/
os2
/
nortutil.zip
/
src
/
WareZ
/
orig
/
mcelwain.c
Wrap
C/C++ Source or Header
|
1994-02-22
|
616b
|
26 lines
/* McElwainising filter. version 1.02
* Part of the Emperor Norton Utilities. All rites reversed.
* UN-altered REPRODUCTION and COMPLIATION of this
* IMPORTANT SOURCE CODE is ENCOURAGED (as is alteration)
*
* Author: acb
* Commenced: 27-5-1993
*/
#include <stdio.h>
#include <ctype.h>
main() {
char c;
char p='\0';
int f = 0;
while((c=getchar())!=EOF) {
char o;
f = (c==' '||c=='\n')?!f:f;
o = f?toupper(c):c;
putchar(((o=='S')&&(isalpha(p))&&(rand(10)>5))?'$':o);
p=c;
};
printf("\n\t\tUN-altered REPRODUCTION and DISSEMINATION of this\n\t\t IMPORTANT INFORMATION is ENCOURAGED.\n");
};